# import datetime
#
# # 指定日期和时间
# year = 2024
# month = 2
# day = 1
# hour = 0
# minute = 0
# second = 0
#
# # 创建datetime对象
# dt = datetime.datetime(year, month, day, hour, minute, second)
#
# # 将datetime对象转换为Unix时间戳
# timestamp = int(dt.timestamp())
#
# print(timestamp)


# import random
# from datetime import datetime
#
# current_time = datetime.now()
# formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
#
# print(formatted_time)

def go_check_code(openid,phone):
    processed_phone = phone[:3] + '****' + phone[-4:]
    last_six_of_a = openid[-6:]
    check_code = processed_phone + '_' + last_six_of_a
    return check_code

openid = 'o2Ft862Uhyy1Sg03cNCq0T6e6gm8'
phone = '18231413197'
print(go_check_code(openid,phone))